package com.imooc.chatroom;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping()
public class IndexController {

  @GetMapping("/index")
  public ModelAndView index() {
    return new ModelAndView("templates/index");
  }
}
